package com.example.springglobalexceptioncatchsample;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class TestController {

    @RequestMapping(value = {"hello"},method = {RequestMethod.GET})
    public HttpREsponse hello(Integer index){
        int i = 100 / index;
        return new HttpREsponse("world");
    }
}
